using Nop.Core.Domain.Directory;

namespace Nop.Data.Mapping.Directory
{
    public partial class MaterialsRelatedEnumMap : NopEntityTypeConfiguration<RelatedEnum>
    {
        public MaterialsRelatedEnumMap()
        {
            this.ToTable("RelatedEnum");
            this.HasKey(c => c.Id);
            
            this.Property(p => p.No).IsRequired().HasMaxLength(50);
            this.Property(p => p.Name).IsRequired().HasMaxLength(50);
        }
    }
}
